#import <UIKit/UIKit.h>
#import "FifteenPuzzleModel.h"

@interface FifteenPuzzleViewController : UIViewController {
    NSMutableArray * tileViewCollection;
    IBOutlet UILabel * moveCountLabel;
    IBOutlet UILabel * timeWatchLabel;
    int moveCount;
    NSTimer * timer;
    NSTimeInterval startInterval;
    NSTimeInterval stopInterval;
    NSTimeInterval elapsedTime;
    NSTimeInterval nowInterval;
    NSTimeInterval activityInterval;
    FifteenPuzzleModel * model;
    NSMutableArray * solvedState;
    BOOL canPlay;
    BOOL firstMove;
}
@property (nonatomic, retain) IBOutlet UILabel * moveCountLabel;
@property (nonatomic, retain) IBOutlet UILabel * timeWatchLabel;
-(void) moveTileOn: (int)position withDirection: (int)direction;
-(IBAction) shuffle;
-(void) moveTileWithIndex: (int)index;
-(BOOL) check;
@end